package com.s4j.struts.biz.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="BIZ_PATIENTDOC")
public class PatientDoc {

	private Long docId;
	
	//序号    10yymmdd0001
	private String docNo;
	
	//姓名 
	private String name;
	
	//性别 1:男 2：女
	private Short sex;
	
	//调查时间     短日期
	private String surveyDay;
	
	//出生日期
	private String birthday;
	
	//年龄
	private Integer age;
	
	//婚况	1-未婚；2-已婚；3-离婚；4-丧偶
	private Integer marriy;
	
	//职业	1-工人；□2-农民；□3-干部；□4-退休；□5-其他
	private Integer job;
	
	private String jobName;
	
	//民族	1-汉族；□2-少数民族
	private Integer nation;
	
	//当nation为2时，此字段填写民族名字
	private String nationality;
	
	//病程  □□.□年
	private Double disCourse;
	
	//身高	□□□.□cm
	private Double stature;
	
	//体重	□□□.□kg
	private Double weight;
	
	//血型	□1-A型；□2-B型；□3-AB型；□4-O型
	private Short bloodType;
	
	//病人来源		□1-住院病人（住院号：□□□□□□□）；□2-门诊病人
	private Short disSource;
	
	//当disSource为1时，此字段填写住院号
	private String disSourceNo;
	
	//家庭住址
	private String homeAddress;
	
	//住宅电话
	private String homePhone;
	
	//录入时间
	private String inputDate;
	
	//录入人
	private String inputUserName;
	
	//病种 1：肝硬化   2：重症肌无力
	private Short diseaseType;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getDocId() {
		return docId;
	}

	public void setDocId(Long docId) {
		this.docId = docId;
	}

	@Column(length=50, nullable=false, unique=true)
	public String getDocNo() {
		return docNo;
	}

	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}

	@Column(length=50, nullable=false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Short getSex() {
		return sex;
	}

	public void setSex(Short sex) {
		this.sex = sex;
	}

	@Column(length=10, nullable=false)
	public String getSurveyDay() {
		return surveyDay;
	}

	public void setSurveyDay(String surveyDay) {
		this.surveyDay = surveyDay;
	}

	@Column(length=10, nullable=false)
	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Column(precision=3, scale=0, nullable=true)
	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Integer getMarriy() {
		return marriy;
	}

	public void setMarriy(Integer marriy) {
		this.marriy = marriy;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Integer getJob() {
		return job;
	}

	public void setJob(Integer job) {
		this.job = job;
	}

	@Column(length=10, nullable=true)
	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Integer getNation() {
		return nation;
	}

	public void setNation(Integer nation) {
		this.nation = nation;
	}

	@Column(length=15, nullable=true)
	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	@Column(precision=5, scale=1, nullable=true)
	public Double getDisCourse() {
		return disCourse;
	}

	public void setDisCourse(Double disCourse) {
		this.disCourse = disCourse;
	}

	@Column(precision=5, scale=1, nullable=true)
	public Double getStature() {
		return stature;
	}

	public void setStature(Double stature) {
		this.stature = stature;
	}

	@Column(precision=5, scale=1, nullable=true)
	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Short getBloodType() {
		return bloodType;
	}

	public void setBloodType(Short bloodType) {
		this.bloodType = bloodType;
	}

	@Column(precision=2, scale=0, nullable=true)
	public Short getDisSource() {
		return disSource;
	}

	public void setDisSource(Short disSource) {
		this.disSource = disSource;
	}

	@Column(length=100, nullable=true)
	public String getDisSourceNo() {
		return disSourceNo;
	}

	public void setDisSourceNo(String disSourceNo) {
		this.disSourceNo = disSourceNo;
	}

	@Column(length=200, nullable=true)
	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	@Column(length=100, nullable=true)
	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}
	
	@Column
	public String getInputDate() {
		return inputDate;
	}

	public void setInputDate(String inputDate) {
		this.inputDate = inputDate;
	}

	@Column(length=50, nullable=false)
	public String getInputUserName() {
		return inputUserName;
	}

	public void setInputUserName(String inputUserName) {
		this.inputUserName = inputUserName;
	}

	@Column(precision=2, scale=0, nullable=false)
	public Short getDiseaseType() {
		return diseaseType;
	}

	public void setDiseaseType(Short diseaseType) {
		this.diseaseType = diseaseType;
	}
}
